package io.demo.builderss;

/**
 * @author create by zhangpengfei at 2021/9/29 18:06
 */

public class Hat extends JacketAccessories {

    Clothes clothes;

    public Hat(Clothes clothes) {
        this.clothes = clothes;
        desc = clothes.desc + ", Hat";
    }

    @Override
    public double cost() {
        return clothes.cost() + 35;
    }
}
